<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta name="author" content="WangHao">
	<script language="javascript" src="../script/common.js" type="text/javascript"></script>
	<script language="javascript" type="text/javascript">
		function load(){
		}
		function getBackValue(){
			var radio = Common.getRadioValue("radioButton");
			if(!radio){
				return;
			}
			return radio;
		}		
		function onSave(){
			var v = getBackValue();
			dialogBackValue(v)
		} 
		function allGoods(){
			$("oilForm").style.display=""
			$("goodsForom").style.display=""
			$("oilForm").oil1.value="97#"
			$("oilForm").oil2.value="95#"
			$("oilForm").oil3.value="93$"
			$("oilForm").oil4.value="90#"
			$("goodsForom").goods1.value="苹果"
			$("goodsForom").goods2.value="牛奶"
			$("goodsForom").goods3.value="面包"
			$("goodsForom").goods4.value="香蕉"	
		}
		function oilGoods(){
			$("oilForm").style.display=""
			$("goodsForom").style.display="none"
			$("oilForm").oil1.value="97#"
			$("oilForm").oil2.value="95#"
			$("oilForm").oil3.value="93$"
			$("oilForm").oil4.value="90#"	
		}
		function goods(){
			$("oilForm").style.display="none"
			$("goodsForom").style.display=""
			$("goodsForom").goods1.value="苹果"
			$("goodsForom").goods2.value="牛奶"
			$("goodsForom").goods3.value="面包"
			$("goodsForom").goods4.value="香蕉"
		}
		function cancle(){
			$("oilForm").style.display="none"
			$("goodsForom").style.display="none"
		}
	</script>
	</head>
<body class="body" onload="load()">
	<div id="listview">	
		<!--查询条件form-->
		<form id="pointRuleTemForm" name="pointRuleTemForm">
			<div class="searchForm">
				<input type="radio" name="radiobutton" onclick="allGoods()" value="all"><label>所有商品</label> <br>
				<input type="radio" name="radiobutton" onclick="oilGoods()" value="oil"><label>油品</label> <br>
				<input type="radio" name="radiobutton" onclick="goods()" value="goods"><label>非油品</label>
			</div>
		</form>
		<form id="oilForm" name="oilForm" style="display:none;">
			<div class="formTitle">油品详细信息</div>
			<div class="searchForm">
			<table cellSpacing="0" cellPadding="4" width="100%" border="0">
				<tr>
					<td> <input type="text" id="oil1" value="" readonly class="readonly"></td>
					<td> <input type="text" id="oil2" value="" readonly class="readonly"></td>
					<td> <input type="text" id="oil3" value="" readonly class="readonly"></td>
					<td> <input type="text" id="oil4" value="" readonly class="readonly"></td>
				</tr>
			</table>
			</div>
		</form>
		<form id="goodsForom" name="goodsForom" style="display:none;">
			<div class="formTitle">非油品详细信息</div>
			<div class="searchForm">
			<table cellSpacing="0" cellPadding="4" width="100%" border="0">
				<tr>
					<td> <input type="text" id="goods1" value="" readonly class="readonly"></td>
					<td> <input type="text" id="goods2" value="" readonly class="readonly"></td>
					<td> <input type="text" id="goods3" value="" readonly class="readonly"></td>
					<td> <input type="text" id="goods4" value="" readonly class="readonly"></td>
				</tr>
			</table>
			</div>
		</form>
	</div>
</body>
</html>
